Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome, Guest. Please login or register.
Did you miss your activation email?

August 12, 2022, 08:29:09 AM

Login with username, password and session length
  • Total Members: 3842
  • Latest: Kokoro
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 50
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 0
Guests: 44
Total: 44

Author Topic: JavaScript Pop-Under Window  (Read 2143 times)

0 Members and 1 Guest are viewing this topic.

Offline Ianedres

  • Friends
  • *
  • Posts: 685
  • $foo['ianedres'] < $foo['ichbin']
    • Clickity click dot dot dot com thingy
JavaScript Pop-Under Window
« on: January 01, 2007, 03:57:48 AM »
To display a 'pop-under' window and load any HTML file:

In TP, add a new block, using the 'scriptbox' option and inserting this code:

Code: [Select]
<script type="text/javascript">
var win=window.open("http://www.yourserver.com/correct_path_to/filename.htm",null,"height=275,left=330,location=no,status=no,resizeable=yes")

Replace the path to the file you wish to load.

I opt not to display any frame/title info in TP's settings, but I do use the title field for reference.

Make sure to turn the block on in TP.

Using different permissions in multiple blocks, you could display various HTML files to each different level; i.e. guests receive a prompt to register, regular users and above get a jukebox in the background... and so forth.

I strongly encourage you to limit your use of the code, as not to annoy your visitors.