As Document Source
var quiz_results = "Your result for this test was: " + 23 + "%";
quiz_results = "Perfect score!";
var tiny = "#define x_width 1\n#define x_height 1\nstatic char x_bits =
Your result for this test was: 23%
If the second <A> tag is clicked nothing will appear to happen since function update_results() returns void. So the current page is not replaced, and the update_score() function gets to do some invisible magic behind the scenes Â in this case just changing a variable. If the first link is clicked afterwards this will be displayed:
This also works in client-side image maps, submit buttons, and frames, but not in Internet Explorer 3.0.
Care must be taken when creating these kinds of bookmarks. Any document from any source could be currently displayed when a user selects a bookmark. If the bookmark refers to any objects, variables or properties in the current page, extra checks should be included in the bookmark URL. This ensures the bookmark doesn't 'crash' if picked when the user is exploring some unexpected page.
<SERVER>, RUNAT and <% and %>
<SERVER> is a Netscape-only tag, the RUNAT attribute is a Microsoft-only, one that applies to the <SCRIPT> tag, hence <SCRIPT RUNAT="server">. The funny looking pair of punctuation marks, <% and %>, are just Microsoft shorthanded for <SCRIPT RUNAT="server"> and </SCRIPT> respectively.
If these tags ever appear in your browser, you know your website is in trouble, because you are using the wrong specialist tags with the wrong web server. Other than that, they have no relevance to browsers.
Revised: March 5, 2001