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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I Get Table Printed On Screen Once Page is Loaded

Status
Not open for further replies.

kanin247

Programmer
Joined
Apr 23, 2001
Messages
113
Location
US
I want a table printed on the screen once the page opens. How would I go about doing this? I would appreciate any help given. Thanks.

~kanin
 
I don't think I understand the question. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Ok, lets say I was using the alert method and I type, alert(&quot;You are about to enter my website&quot;) in the <body>. So once the user accesses my page the alert pop-up screen will appear stating 'You are about to enter my website'

This is basically the idea I want except I don't want an alert pop-up. I want a table printed on screen. I don't want it written there already because I'm using frames and a calculator and I am updating the the bottom frame with numbers each time, thus creating a list of numbers in the frame each time. So I just want to create a table once the page is accesses so that I can be able to label the list of numbers. I hope this clears up my question.

~kanin

example:
//top frame
x + y = z //user enters values for x, y
[store]

//bottom frame
[input 1][input 2][answer] //printed when page is loaded
[ 2 ][ 2 ][ 4 ] //store button prints this
[ 3 ][ 4 ][ 7 ] //store button prints this
[ 5 ][ 1 ][ 6 ] //store button prints this

The command for the 'store' button is user activated. I need the command for the when the page is loaded. They work basically the same - printing table to bottom frame -except I want the labels printed at the time the page is loaded.
 
Have you tried: document.write(&quot;your html here&quot;); Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
tsdragon,
thanks, you made the light bulb go off in my head. i've been using the document.write method. but i wrote it in a function. i thought that there needed to be a command to activate it. thanks.

~kanin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top