HTML code - exit locked frame

Networking/Security Forums -> Programming and More

Author: Tom BairLocation: Portland, Oregon USA PostPosted: Wed Aug 21, 2002 12:58 am    Post subject: HTML code - exit locked frame
    ----
I developed the following code to place at the bottom of certain webpages.

<!---exit locked frame--->
<P ALIGN="CENTER">
<table border="11" width="70%" cellpadding="1">
<tr>
<td width="1%" valign="top">
<TD ALIGN=center>
Locked in a frame?
<a href="http://pcwriter.home.mindspring.com/"
target="_top"><i>Click here!</i></a></td></p>
<!---end exit locked frame--->


Anyone have any suggestions/comments to offer a beginning HTML programmer such as myself?

Author: WombatLocation: Canberra PostPosted: Wed Aug 21, 2002 1:26 am    Post subject:
    ----
OK, for a start have a look at the tags to do with the table. These tags (like most HTML tags) need to have closing tags, and be properly nested. Look at my examples below, and compare them to your code, and you'll see that you've missed a couple of bits Wink .

A table with one row and two columns (ie only two cells) would go like this (btw, "foo" and "bar" is any text written in the cells):


Code:
<table>
  <tr>
    <td>
      foo
    </td>
    <td>
      bar
    </td>
  </tr>
</table>


A table with two rows and two columns would go like this:

Code:
<table>
  <tr>
    <td>
      foo
    </td>
    <td>
      bar
    </td>
  </tr>
  <tr>
    <td>
      foo
    </td>
    <td>
      bar
    </td>
  </tr>
</table>


It looks as though you're trying to break people out of a frame, if your site has been loaded inside a frame of another site. Did you know that you can use JavaScript to break out of a frame automatically? There are lots of scripts available, just do a Google on something like "JavaScript frame jammer".

Author: Tom BairLocation: Portland, Oregon USA PostPosted: Wed Aug 21, 2002 1:36 am    Post subject:
    ----
Thanks Wombat ... I'll compare your examples to my code at home tonight and see if I can't clean it up.

Although Java looks to be exciting, I'm still learning HTML and CSS. After I am comfortable (and successful) in HTML - I'll take up Java Wink

Author: WombatLocation: Canberra PostPosted: Wed Aug 21, 2002 1:42 am    Post subject:
    ----
lol, you're new to this so I'll be gentle Wink .

Java and JavaScript are two separate languages, so it's important not to confuse them.

Java is a language you can use to write applications, which you could then embed in a web page as an "applet". Java can also be used for server-side scripting, on JSP pages (the web server executes the Java, so the client's browser never sees it).

JavaScript is a client-side language: it is part of a normal web page and gets executed by the client's browser.

The two languages do look a bit similar but they're used for separate things.



Networking/Security Forums -> Programming and More


output generated using printer-friendly topic mod, All times are GMT + 2 Hours

Page 1 of 1

Powered by phpBB 2.0.x © 2001 phpBB Group