Flare Sci-fi Forums
Flare Sci-Fi Forums Post New Topic  New Poll  Post A Reply
my profile | directory login | search | faq | forum home

  next oldest topic   next newest topic
» Flare Sci-Fi Forums » Community » Officers' Lounge » Java Script Question

   
Author Topic: Java Script Question
Aban Rune
Former ascended being
Member # 226

 - posted      Profile for Aban Rune     Send New Private Message       Edit/Delete Post   Reply With Quote 
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?

--------------------
"Nu ani anqueatas"

Aban's Illustration
The Official Website of Shannon McRandle

Registered: Oct 1999  |  IP: Logged
Harry
Stormwind City Guard
Member # 265

 - posted      Profile for Harry     Send New Private Message       Edit/Delete Post   Reply With Quote 
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.

--------------------
Titan Fleet Yards | Memory Alpha

Registered: Dec 1999  |  IP: Logged
Aban Rune
Former ascended being
Member # 226

 - posted      Profile for Aban Rune     Send New Private Message       Edit/Delete Post   Reply With Quote 
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.

--------------------
"Nu ani anqueatas"

Aban's Illustration
The Official Website of Shannon McRandle

Registered: Oct 1999  |  IP: Logged
   

Quick Reply
Message:

HTML is enabled.
UBB Code™ is enabled.

Instant Graemlins
   


Post New Topic  New Poll  Post A Reply Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


© 1999-2024 Charles Capps

Powered by UBB.classic™ 6.7.3