Click to See Complete Forum and Search --> : Web design snag


lootinantdan
11-17-2003, 11:36 PM
Hello all, I'm new. Anyhow I have a question. I am using Dreamweaver MX to design a new website (which I know only a fair amount of), and I have a little html know how. I have probably even done this before but can't remember how. I need to have a link that will open up a new browser window, yet a window that I can size to fit it's contents and that is capable of scrolling up and down, but doesnt have the url field and everything else. (just a sizable window that can scroll up and down). I can accomplish this using the "open new browser window" in the behaviors panel of Dreamweaver, but it only allows the mouseover behavior for the link. I wanted to click on the link and have it open the new window. But doing it by way of a typical link doesn't give the option to resize the target window or set the attributes like I need. I was thinking if there wasn't away to do it like I want with Dreamweaver MX, then maybe there was a html code or something. If anyone was able to follow my scatterbrained explination, how can I accomplish this? ~ Thanks

Jona
11-18-2003, 12:26 AM
<a href="no_js.html" onclick="window.open('page.html','child','width=400,height=300,scrollbars=yes,menubar=no,statusbar=no'); return false;">Open</a>


[J]ona

pyro
11-18-2003, 07:31 AM
You might be better off with this:

<a href="page.html" onclick="window.open(this.href,'child','width=400,height=300,scrollbars=yes
,menubar=no,statusbar=no'); return false;">Open</a>

Paul Jr
11-18-2003, 01:26 PM
Originally posted by pyro
You might be better off with this:

<a href="page.html" onclick="window.open(this.href,'child','width=400,height=300,scrollbars=yes
,menubar=no,statusbar=no'); return false;">Open</a>


Originally posted by [J]ona

<a href="no_js.html" onclick="window.open('page. html','child','width=400,height=300,scrollbars=yes
,menubar=no,statusbar=no'); return false;">Open</a>


Same thing, no?

pyro
11-18-2003, 01:36 PM
Nope, the one that I posted will send the users without JavaScript enabled to the same page, just in the current window.

<a href="page.html" onclick="window.open(this.href,'child','width=400,height=300,scrollbars=yes
,menubar=no,statusbar=no'); return false;">Open</a>

Paul Jr
11-18-2003, 01:56 PM
Ah, the code you and Jona posted was exactly the same -- except for that. I thought it was just the same thing, said a different way.

pyro
11-18-2003, 01:57 PM
Nope, they're different... :)