Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How do I open a link in a new frame in XHTML?

Featured Replies

Using XHTML, what's the easiest way to get a navigation bar to remain on the index page after clicking one of its links? I'm thinking frames but is there an alternative way to achieve a menu that doesn't open its links in the same window (because this means that the menu disappears)

 

In HTML I would use the following (if I wanted the links to open in a iframe):

 

<iframe src="page1.html" id="frame1"></iframe>

<p><a href="http://www.w3schools.com" target="frame1">W3Schools.com</a></p>

 

"target" is invalid in XHTML. How can I modify the above code so that it works and validates in XHTML?

Does it need to be the same menu staying on the same page? Can't you just have the same menu coded in to those different pages?

 

If you use includes, such as PHP Includes, you can repeat the same menu across many different pages using the same small bit of code. Because the user already has that bit of code in their cache (from their first visit) it will load instantaneously, almost like it's the exact same page.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.