I have some links and I want when I click on them , open up in a new window with a header bar containing some text or images like some template centers which show their templates’ demos and you can change template through a header and it’s always static.
notice that I want to do this in html.
thanks in advance!
I have found this but because I’m using just html I couldn’t know where to add this :
If you wanted to achieve something like this where the user can actually input a web address to be shown under your header (or some other method where you have the ability to show a variety of different sites, though not at once, on one page), you can use PHP and set the SRC as a variable which will be retrieved either through the POST or GET method in PHP, assuming you have that installed on the server, like this:
$url = $_GET;
You can do it in HTML using iframes, but they were weird even back in the day, so I wouldn’t use them. You also used to be able to do it in HTML using server side includes (SSI), but I don’t know if that still works these days or not. Either way, they’re older methods and I would just stick with PHP because it’s more widely used these days.
@srig99 , now I want to do this with PHP but because all of those links which I want to show them with my header aren’t my own pages (I want to link to other webpages) so I can’t put this include ‘header.php’ inside of those pages.
I want to do this with for example with class which is given to a tag and all the a tags which have this class should open the page with that header even if the link was from another website.
You must be logged in to reply to this topic.