|
-
html - how to make a new window load to a specific size
I've had no luck searching the web, but I admit I have add, and the intelligence of a 3 year old, so it's probably just me.
I'm trying to make it so certain pages...i.e. the links page will open to a certain window size, say 500x500, some will still need scroll bars, so I'm not sure if that's an issue as well.
is there a thing I need to add to the <a href=> portion, or do I need a script instead of going the html route?
thanks
Alden
-
Goldfish
you call window.open using javascript like this:
var new_window =
window.open("/links.html","width=400,height=400");
the entire link would look like:
<a href="#" onClick="var new_window =
window.open("/links.html","width=400,height=400"); return false;">THE NAME OF THE LINK</a>
yo uhave to have href="#" and the return false in order to prevent your original window from changing.
Possesions never meant anything to me,
I'm not crazy.
Well that's not true I have a bed,
and a guitar and a dog named dog.
-
ok cool, thanks man
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|