I am creating a template demo bar, where people can view my created web themes. User will click preview button on one page and will be able to see theme in iframe in another page. Below is the code for link page
<html>
<head></head>
<body>
<a href="http://site/demobar?theme=http://www.template.com">preview</a>
</body>
</html>
and then on demo page I get the iframe
<iframe src="<?php echo $_GET['theme']; ?>" style="width:100vw; height:100vh;"></iframe>
This works ok, but my problem is in returning url which displays the URL:
I want template name instead of template address in URL
How can I achieve this!!, is there any other alternative with javascript!