471,887 Members | 803 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

Random Number Generator Pop Up Error


I have a html form on a web page that I am using a hidden field that has a random number inserted by javascript.

function genRandomNumber() {
document.form.hidden.value = Math.floor(Math.random()*100);
I call this script with onload="MM_callJS('window.onload = genRandomNumber();

It works fine and the random number is inserted in the hidden field...but when the page loads a IE pop up error box shows up with the random number and on OK box.

Is there a way to keep this error box from showing up? I am using IE 7.

Thanks for any input
Aug 27 '08 #1
1 1235
16,027 Expert Mod 8TB
What does the error message say? Does it only occur in IE or on other browsers too?
Aug 28 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Brandon Michael Moore | last post: by
16 posts views Thread by Jason | last post: by
3 posts views Thread by Joe | last post: by
70 posts views Thread by Ben Pfaff | last post: by
5 posts views Thread by Peteroid | last post: by
104 posts views Thread by fieldfallow | last post: by
12 posts views Thread by Jim Michaels | last post: by
20 posts views Thread by Robbie Hatley | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.