T O P I C ��� R E V I E W
|
Aban Rune
Member # 226
|
posted
Ok... I'm dabbling in basic Javascript for a website I'm doing at work and I'm having trouble finding some code. I'm trying to get a small window to pop open at a fixed size but that has a scroll bar on the side. I've got a fixed size box with no scroll bar. I'm using this:
on.click="window.open('spec_offer_1.htm','plain','height=374,width=640','target=top')"
(I don't actually have the period between on and click, but it wouldn't let me submit the thread with that code there)
I thought adding the scroll bar involved adding "scroll=yes" or something like that, but I don't know the exact string nor where to add it.
Help a brutha out?
|
Harry
Member # 265
|
posted
quote:
window.open('spec_offer_1.htm','plain','height=374,width=640,scrollbars=yes,target=top')
That should work. For more Window object methods, see here.
|
Aban Rune
Member # 226
|
posted
Grazti, senore. I'll try that code and bookmark that link.
edit: OK, that link didn't work, but I just bookmarked the home page and found the java manual.
|
|