Dave Programming
Wednesday, December 31, 2008
javascript assignment to variables.
This example that shows how to force a page to be displayed inside a frame
was confusing at first. The reason was that I didn't understand that.
var ar2;
var num = 2;
window["ar" + num] = "frame4.html";
is the same as
ar2 = = "frame4.html";
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment