Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set window resolution? 1

Status
Not open for further replies.

darkprince

Programmer
Jun 4, 2002
165
AU
hello

i was wondering how to make it so that in a pop up you can set the pop-up resolution to say 750x550 so that it cannot be resized?

ciao
 
thx onpnt and gus but can you guys give me the whole javascript code as i was using the <a href=&quot;&quot; target=_blank> way?

lol hopefully one day ill be able to answer questions for lots of newbies like yous do

ciao
 
how about this one
<a onClick=&quot;window.open('page.htm','pagename','width=750, height=550');return false;&quot; href=&quot;page.htm&quot; target=&quot;_blank&quot;>popup</a> A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
yay thx a heap, it worked like a charm and not to confusing for me lol.

cheers
 
hey i was just wondering one more thing...

how can i make automatic pop-ups and im not using them on my site so they wont be used to annoy people i just want to know

cheers
 
place the popup code into a function and call it onLoad in the body tag.
example syntax
<head>
<script>
function popupWindow() {
window.open('page.htm','pagename','width=750, height=550');
}
</script>

<body onLoad=&quot;popupWindow()&quot;>

A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
thanks alot again and um i promise this is the last thing lol, its just im trying this thing out, how can i do numerous amounts of them
 
you need to asign varaibles at that point like this

var one = window.open('page1.htm','page1','width=250, height=350');
var two = window.open('page2.htm','page2','width=650, height=450');
var three = window.open('page3.htm','page3','width=450, height=350');


same way onLoad A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
yay thx a heap again ill give you another star, it worked perfectly

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top