« Web, HTML, Tech Forum

anyone know how to make a iframe appear on click (in a div)?

Posted by Osakafan420

posted
updated

Forum: Web, HTML, Tech

So basically i want to make an iframe appear in a div on click

(like this site; https://aioi.neocities.org/blog/)

I don't know any java-script so i have no clue how to code some js so id like some help!!

(plus id rather not copy someone else's code (on someone else's site.))

(Not on spacehey!!! On my own site!!!)


Report Topic

6 Replies

Sort Replies:

Reply by melonade

posted

I don't really know how to help you with this as I know literally nothing about web development as of right now, but the most I can really do for you is tell you is that you can't use js in spacehey profiles. You can try to go for solutions for what you're looking for with html and css it shouldn't be too hard to break down the individual problems that need to be solved in order to do something like this into questions you can look up on google


Permalink Report Reply

Reply by pawtal!!!

posted
updated

Use :target, and add a custom link to your about me or interests utilize it.



Permalink Report Reply

Reply by Osakafan420

posted

@melonade i know that i can't use js on spacehey profiles, this is for my own site lol


Permalink Report Reply

Reply by Osakafan420

posted

@pawtals! i appreciate it but this is for my own site ^^;;; (probs should've clarified) (+ ive used something like this in the past, its a bit slow so that's why im trying iframes currently;;;)


Permalink Report Reply

Reply by Niliara

posted
updated

I got it to work!! this is the code I used:




I hope this works!!

also, spacehey is constantly blocking anything related to this language, i recommend trying somewhere else next time


Permalink Report Reply

Reply by Osakafan420

posted

@Niliara ty i will try this!!


Permalink Report Reply