• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

HTML code - exit locked frame

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More

View previous topic :: View next topic  
Author Message
Tom Bair
SF Boss
SF Boss


Joined: 10 Aug 2002
Posts: 16776955
Location: Portland, Oregon USA

Offline

PostPosted: Wed Aug 21, 2002 12:58 am    Post subject: HTML code - exit locked frame Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website
Wombat
Trusted SF Member
Trusted SF Member


Joined: 24 Apr 2002
Posts: 0
Location: Canberra

Offline

PostPosted: Wed Aug 21, 2002 1:26 am    Post subject: Reply with quote

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".
Back to top
View user's profile Send private message
Tom Bair
SF Boss
SF Boss


Joined: 10 Aug 2002
Posts: 16776955
Location: Portland, Oregon USA

Offline

PostPosted: Wed Aug 21, 2002 1:36 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Wombat
Trusted SF Member
Trusted SF Member


Joined: 24 Apr 2002
Posts: 0
Location: Canberra

Offline

PostPosted: Wed Aug 21, 2002 1:42 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Looking for more Windows Networking info?

Sign up to the WindowsNetworking.com Monthly Newsletter, written by Enterprise Security MVP Deb Shinder, containing news, the hottest tips, Networking links of the month and much more. Subscribe today and don't miss a thing!
View a sample newsletter.

Become a WindowsNetworking.com member!

Discuss your Windows Networking issues with thousands of other Windows Newtorking experts. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?

Follow TechGenix on Twitter